package com.example.myfirstapp;

import android.app.ListFragment;
import android.os.Bundle;
import android.util.Log;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ListView;

public class FriendsFragment extends ListFragment{
	
//	private OnItemClickListener mMessageClickedHandler = new OnItemClickListener() {
//	    public void onItemClick(AdapterView parent, View v, int position, long id) {
//	        // Do something in response to the click
//	    }
//	};
//	

    @Override
    public void onActivityCreated(Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        

		String[] myStringArray = new String[]{"mert", "yigit"};
		
		setListAdapter(new ArrayAdapter<String>(getActivity(),
                android.R.layout.simple_list_item_1, myStringArray));
		
    }

    @Override
    public void onListItemClick(ListView l, View v, int position, long id) {
        Log.i("FragmentList", "Item clicked: " + id);
        
    }
}
